package productmanagementclient.publish;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

public interface ProductRemote extends Remote {
	public List<Product> getAllProduct() throws RemoteException;
	public Long saveProduct(Product product) throws RemoteException;
	public void updateProduct(Product newProduct) throws RemoteException;
	public void deleteProduct(Long productId) throws RemoteException;
	public Product getProductById(Integer productID) throws RemoteException;
	public Product getProductByName(String productName) throws RemoteException;
	
	public List<User> getAllUser() throws RemoteException;
	public Long saveUser(User user) throws RemoteException;
	public void updateUser(User newUser) throws RemoteException;
	public void deleteUser(Long userId) throws RemoteException;
	public User getUserById(Integer userID) throws RemoteException;
	public User getUserByName(String userName) throws RemoteException;
}
